package com.lagou.model;

import java.util.List;

public class UserMessage implements java.io.Serializable {
    private static final long serialVersionUID = -4729638835655094399L;

    // 消息的类型代表具体的业务
    private String type;
    // 消息的具体内容
    private List<User> list;

    public UserMessage() {
    }

    public UserMessage(String type, List<User> list) {
        this.type = type;
        this.list = list;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<User> getList() {
        return list;
    }

    public void setList(List<User> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "UserMessage{" +
                "type='" + type + '\'' +
                ", list=" + list +
                '}';
    }
}
